﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading.Tasks;

namespace NBBL_Tile_Editor
{
    public class EventString
    {
        string eventID = "BASE_TILE";

        public string EventID
        {
            get { return eventID; }
            set { eventID = value; }
        }

        Color eventColor = Color.White;

        public Color EventColor
        {
          get { return eventColor; }
          set { eventColor = value; }
        }

        public override string ToString()
        {
            return EventID;
        }

        public EventString()
        {
            eventColor = Color.White;
            eventID = "BASE_TILE";
        }
        public EventString(string id, Color color)
        {
            eventColor = color;
            eventID = id;
        }

    }


    class Tile
    {
        //***********************************************
        // Stores Event to be thrown upon collision
        //  0 - "TILE_BASE"     - Does nothing, standard tile
        //  1 - "SLOW_HAZARD"   - Slows colliding agents
        //  2 - "DAMAGE_HAZARD" - Damages colliding agents
        //  3 - "RED_GOAL"      - Triggers goal if blue carrier/ball collides
        //  4 - "BLUE_GOAL"     - Triggers goal if red carrier/ball collides
        // More events possible
        //************************************************
        int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        //Tile's X coordinate in map
        int x;

        public int X
        {
            get { return x; }
            set { x = value; }
        }

        //Tile's Y coordinate in map
        int y;

        public int Y
        {
            get { return y; }
            set { y = value; }
        }

        public Tile( int x, int y, int id = 0)
        {
            this.x = x;
            this.y = y;
            this.id = id;
        }

        public Tile()
        {
            x = 0;
            y = 0;
            id = 0;
        }

    }
}
